# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=gnome-mines
pkgver=40.1
pkgrel=0
arch="all !s390x !riscv64" # librsvg
url="https://wiki.gnome.org/Apps/Mines"
pkgdesc="Clear hidden mines from a minefield"
license="GPL-3.0-or-later"
depends="librsvg"
makedepends="yelp-tools appstream-glib vala meson libgee-dev gtk+3.0-dev
	librsvg-dev libgnome-games-support-dev itstool"
source="https://download.gnome.org/sources/gnome-mines/${pkgver%.*}/gnome-mines-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson . build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}

sha512sums="
0e7ba01c298bb96dc2102b0af2c37d1c28772dd3b720dcfa48f9363ef36b14fc6c624e877a684f83a16ba9ffb9c9922403bdd73379afb1cbbbc66baf796c29c5  gnome-mines-40.1.tar.xz
"
